package xuesm.proxy.statical;

import xuesm.proxy.IActor;

/**
 * @Author: xuesm
 * @Description: 演员的代理
 * @Date: Create in 20:11 2019/4/2
 */
public class ActorAgent implements IActor{

	private IActor actor;
	public ActorAgent(IActor actor){
		this.actor = actor;
	}


	@Override
	public void act() {
		befor();
		actor.act();
		after();
	}

	private void befor() {
		System.out.println("给演员联系公司， 签合约");
	}

	private void after() {
		System.out.println("安排演员衣食住行");
	}
}
